import request from '@/utils/request'

export function getListAPI(params) {
  return request({
    url: '/park/building',
    params
  })
}
export function addBuildingAPI(data) {
  return request({
    url: '/park/building',
    method: 'post',
    data
  })
}
export function getBuildDetailAPI(id) {
  return request({
    url: '/park/building/' + id
  })
}
export function updateBuildAPI(data) {
  return request({
    url: '/park/building',
    method: 'put',
    data
  })
}
export function delBuildAPI(id) {
  return request({
    url: '/park/building/' + id,
    method: 'delete'
  })
}
export function getRentBuildAPI() {
  return request({
    url: '/park/rent/building'
  })
}
